package com.hqyj.nacosprovider.controller;

import com.hqyj.nacoscommon.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/getUserName")
    public User getUserName() {

        User u = new User();
        u.setUserName("zhangsan");
        u.setId(100);
        u.setPassword("123");
        return u;
    }

}
